package edu.sctu.wangfuxin.day20150601testtrain;


/**
 * Created by user06 on 2015/6/3.
 */

/**
 * 监控器类
 */
public class MonitoringSystem {
    private int number;
    public MonitoringSystem(int number){
        this.number = number;
    }
    public void monitorTheThief(PeopleAppBean people){
        if(people.isIs_thief() && people.isIs_stealingsomething()){
            System.out.println("第"+(number+1)+"号监控器报警："+people.getName()+"是小偷");
        }

    }
    public void monitorAccident(RunningSubway runningSubway){
        if (runningSubway.isIs_safe()) {
            System.out.println("地铁正在安全行驶！");
        }else {
            System.out.println("地铁出现异常，请大家有序撤离！");
        }
    }
}


//1.地铁监控系统，如果地铁中有小偷偷东西，就进行报警，如果地铁行驶过程中有任何事故就疏散乘客。